package com.cloudOffice.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloudOffice.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "角色")
@TableName("sys_role")
public class SysRole extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@NotBlank(message = "角色名称不能为空")
	@Schema(description = "角色名称")
	@TableField("role_name")
	private String roleName;
	
	@Schema(description = "角色编码")
	@TableField("role_code")
	private String roleCode;
	
	@Schema(description = "描述")
	@TableField("description")
	private String description;
	
}

